<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = '会员充值通道设置';
$this->params['breadcrumbs'][] = $this->title;

?>
<!-- page title -->
<div class="page-title">
  <div>
    <h1><i class="fa fa-trophy"></i> 会员充值通道设置</h1>
    <p style="font-style:normal;">设置会员充值通道，会员可以看到和使用勾选的通道，未勾选的通道将对会员屏蔽</p>
  </div>
</div>
<!-- page title end-->

<!-- page body start -->
<div class="card">
<?php $form = ActiveForm::begin(); ?>
    <?php
      if(isset($tip)&&$tip===true){
        if($model->hasErrors()){
    ?>
          <div class="alert alert-danger" role="alert">
            <?php
                foreach($model->getErrors("") as $key=>$value){
                  echo $value."<br>";
                }
            ?>
          </div>
    <?php
        }else{
    ?>
          <div class="alert alert-success" role="alert">充值通道设置成功！</div>
    <?php
        }
      }
    ?>

    <div class="animated-checkbox">
      <label class="semibold-text">
      <?= $form->field($model, 'sxy_checked')->checkbox(['label' => '<span class="label-text">网银支付</span>']) ?>
      </label>
    </div>
    <div class="animated-checkbox">
      <label class="semibold-text">
        <?= $form->field($model, 'alipay_checked')->checkbox(['label' => '<span class="label-text">支付宝</span>']) ?>
      </label>
    </div>
    <div class="animated-checkbox">
      <label class="semibold-text">
        <?= $form->field($model, 'weixin_checked')->checkbox(['label' => '<span class="label-text">微信支付</span>']) ?>
      </label>
    </div>


    <div class="form-group">
        <?= Html::submitButton('提交', ['class' => 'btn btn-warning']) ?>
    </div>

<?php ActiveForm::end(); ?>
</div>
<!-- page body end-->
